faces config « API « JSF Q&A





1. JSF faces config file outside WEB-INF?    stackoverflow.com

When creating multiple faces config files, it is correct to have the faces-config.xml outside of WEB-INF? The JSF spec does not seem to be very clear about this (Section 10.1.3) If yes, ...

2. Shared faces-config.xml across web project    stackoverflow.com

I am trying to come up with a common UI framework for my organization. I want to know can I have something called shared faces-config.xml file which can be shared across ...

3. Communicating different properties in multiple faces-config.xml    stackoverflow.com

Is there a way by which different managed beans in different faces-config.xml placed in multiple WARs.

4. Jsf library with web.xml    stackoverflow.com

Jsf library (that is included in WEB-INF/lib) might contain its own faces-config.xml file. Is it possible for such a library to include also its own web.xml file?

5. where did this faces-config.pageflow.xml file come from?    stackoverflow.com

I am migrating an application to jsf 1.2 and now out of the blue there is a new .metadata folder in the project root with a WebConent folder inside there with ...

6. JSF using constants in faces-config in     stackoverflow.com

Is it necessary to hardcode values in in faces-config.xml or is it possible to define all from-outcome values as constants in one place and then reference them from faces-config.xml ...

7. Navigation case not working in JSF    stackoverflow.com

We're working on our first JSF project, and we have some problems. We are making the login functionality, and when we hit the login button, it throws:

  • an IllegalArgumentException - null source
  • a NullPointerException ...

8. Can you control browser back button using JSF faces-config navagation    stackoverflow.com

Can you control browser back button using JSF faces-config navagation? When the back button is pressed on browser would like to use navigation like the following to control what page to ...

9. How to map a BitSet on facesconfig.xml    stackoverflow.com

I want to map this bean in my facesconfig.xml

public class VisualizationBean {

    private BitSet results;

    public BitSet getResults() {
       ...





10. Can I use a deployment plan to modify faces-config.xml    stackoverflow.com

I'm using WebLogic 10.3 and I have some configuration parameters in faces-config.xml that I would like to be able to set via a deployment plan. I used the weblogic.PlanGenerator tool to generate ...

11. Can we have multiple Faces-config file in our JSF application?    stackoverflow.com

I am working on a project which has grown bigger and lots of works still remains. The thing is, the entries in my faces-config.xml has already spanned some 600 lines, and i ...

12. How do I write and configure a custom facelet to override h:messages?    stackoverflow.com

I am in the middle of rewriting a site that was originally written in Weblogic Beehive to JSF 2.0, and I'm running into an issue where I need to get the ...

13. Prettyfaces unable to find matching navigation case    stackoverflow.com

I keep getting this error:

Unable to find matching navigation case with from-view-id '/index.xhtml' for action '/faces/index.xhtml' with outcome 'finish_setup'
The program works, redirecting my url to /Setup on form submission. ...

15. How to Access Another Class' Property Value that is Defined in the faces-config.xml?    coderanch.com

I have a private property "dataTransferType" with public getter and setter in the DataFile class. The initial value of the "dataTransferType" is defined in the faces-config.xml file. I want to get the "initial value" of the "dataTransferType" in another class and the compiler does not like the way I access this property. Here is the snippet of the DataFile class, which ...





17. multiple faces config files    coderanch.com

18. Dynamic faces-config.xml    coderanch.com

As best I know, JSF does not specify any public API to access to the config files even for read. So, there is no way to manipulate with it programmatically. However, you can do something that is defined in the config file using other API. For example: * you have no way to add/delete or modify navigation rules * you can ...

19. how do menus fit in with the faces-config.xml    coderanch.com

Navigation is an outbound process, not an inbound process. You can specify an action specific to a return value for a given backing bean, but you can also specify an action value that applies globally. A classic example of this is to set up a navigation rule that says when any backing bean returns "login", the target will be the login ...

21. faces-config + /WEB-INF/jspf Question    coderanch.com

22. Assign faces-config values dynamically    coderanch.com

23. faces-config mess    coderanch.com

26. PhaseListener problems com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!    coderanch.com

I am quite new to java and JSF. I have a project I built using seam-gen. In trying to understand JSF better I am trying to implement a simple PhaseListener that I got off someone's blog. Here it is: package dne.nmt.ond.action; import javax.faces.context.FacesContext; import javax.faces.event.PhaseEvent; import javax.faces.event.PhaseId; @SuppressWarnings("serial") public class MyPhaseListener implements javax.faces.event.PhaseListener { public void afterPhase(PhaseEvent event) { FacesContext.getCurrentInstance().getExternalContext().log("AFTER - ...

27. faces-config not working    coderanch.com

28. Is the faces-config modularized    coderanch.com

30. Netbeans 6.9.1 faces-config.xml    coderanch.com

Hi to all, I'm trying to write my first simple jsf project on Netbeans 6.9.1, I add the Java Server Faces 1.2 framework to the project but under WEB-INF I cannot find the faces-config.xml. Inside Libraries I have the various jsf .jars and under Web Pages I have the Welcome JSF.jsp. Could you suggest me what is wrong? Thank you Stefania ...

32. Is needed faces-config?    coderanch.com

In JSF2, faces-config is no longer mandatory. You can do most configuration that was formerly done in faces-config.xml using Java code annotations, and in particular, that means managed bean and managed property definitions as well as navigation. However, there are some things that cannot be done in Java code, such as installing the bridge between the JSF EL resolver and Spring ...

33. Can we have multiple faces-config.xml files in our JSF applications?    coderanch.com

I am working on a project which has grown bigger and lots of works still remains. The thing is, the entries in my faces-config.xml has already spanned some 600 lines, and i fear it will double up in coming months. i was thinking if there might be some way so that i can have more than one faces-config.xml file in project ...

34. JSF Example , with no faces-config.xml, web.xml    coderanch.com

Rather than "eliminate", let's say "reduce". Not all of the options that can be specified in faces-config and web.xml have annotation equivalents. Annotations are a mixed blesing. They cut down on the need to do side editing in a config file, but if you don't have good shop documentation and good standards, it can result in playing hide-and-seek trying to find ...